package pl.droidsonroids.gif;

import java.io.IOException;

public class GifIOException extends IOException {
    public final GifError reason;
    private static final long serialVersionUID = 13038402904505L;

    GifIOException(int code) {
        this(GifError.fromCode(code));
    }

    GifIOException(GifError gifError) {
        super(gifError.getFormattedDescription());
        this.reason = gifError;
    }
}

